package main

import (
	"fmt"
	"runtime"
)

/*
* Author: JacksonCoder
* CreateTime: 2025/5/22
 */

func main() {
	fmt.Println("runtime.NumCPU():", runtime.NumCPU())
	// 读取默认的线程数
	fmt.Println(runtime.GOMAXPROCS(0))
	// 设置线程数为 10
	runtime.GOMAXPROCS(10)
	// 读取当前线程数
	fmt.Println(runtime.GOMAXPROCS(0))
}
